package com.liachen.stock.entity;

import com.github.liaochong.myexcel.core.annotation.ExcelColumn;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * TODO 功能描述
 *
 * @author chen.liang
 * @date 2020/1/3 15:54
 * @since V1.0
 */
@Data
public class StockSummaryInfo implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 股票代码
     */
    @ExcelColumn(title = "股票代码", style={"title->background-color: #e0927f; border-bottom: 1px solid #d9d9d9; font-weight: bold; text-align: center;","odd->background-color: #f2f2f2; border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;", "even->border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;"})
    private String code;
    /**
     * 股票名称
     */
    @ExcelColumn(title = "股票名称", style={"title->background-color: #e0927f; border-bottom: 1px solid #d9d9d9; font-weight: bold; text-align: center;","odd->background-color: #f2f2f2; border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;", "even->border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;"})
    private String name;
    /**
     * 买入总市值
     */
    @ExcelColumn(title = "买入总市值", decimalFormat = "#,000", style={"title->background-color: #e0927f; border-bottom: 1px solid #d9d9d9; font-weight: bold; text-align: center;","odd->background-color: #f2f2f2; border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;", "even->border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;"})
    private BigDecimal totalMarketValue;
    /**
     * 平均成本
     */
    @ExcelColumn(title = "平均成本", decimalFormat = "#0.00", style={"title->background-color: #e0927f; border-bottom: 1px solid #d9d9d9; font-weight: bold; text-align: center;","odd->background-color: #f2f2f2; border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;", "even->border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;"})
    private BigDecimal avgCost;
    /**
     * 当前价格
     */
    @ExcelColumn(title = "当前价格", decimalFormat = "#0.00", style={"title->background-color: #e0927f; border-bottom: 1px solid #d9d9d9; font-weight: bold; text-align: center;","odd->background-color: #f2f2f2; border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;", "even->border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;"})
    private BigDecimal currentPrice;
    /**
     * 持有人数
     */
    @ExcelColumn(title = "持有人数", style={"title->background-color: #e0927f; border-bottom: 1px solid #d9d9d9; font-weight: bold; text-align: center;","odd->background-color: #f2f2f2; border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;", "even->border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;"})
    private Integer holdCount;
    /**
     * 最早买入日期
     */
    @ExcelColumn(title = "最早买入日期", dateFormatPattern = "yyyy-MM-dd", style={"title->background-color: #e0927f; border-bottom: 1px solid #d9d9d9; font-weight: bold; text-align: center;","odd->background-color: #f2f2f2; border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;", "even->border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;"})
    private Date earliestBuyTime;
    /**
     * 最晚买入日期
     */
    @ExcelColumn(title = "最晚买入日期", dateFormatPattern = "yyyy-MM-dd", style={"title->background-color: #e0927f; border-bottom: 1px solid #d9d9d9; font-weight: bold; text-align: center;","odd->background-color: #f2f2f2; border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;", "even->border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;"})
    private Date latestBuyTime;
    /**
     * 平均持仓量
     */
    @ExcelColumn(title = "总持仓量", style={"title->background-color: #e0927f; border-bottom: 1px solid #d9d9d9; font-weight: bold; text-align: center;","odd->background-color: #f2f2f2; border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;", "even->border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;"})
    private BigDecimal totalHoldNum;

    /**
     * 今日涨幅
     */
    @ExcelColumn(title = "今日涨幅", style={"title->background-color: #e0927f; border-bottom: 1px solid #d9d9d9; font-weight: bold; text-align: center;","odd->background-color: #f2f2f2; border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;", "even->border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;"})
    private BigDecimal todayIncrease;
    /**
     * 平均收益率
     */
    @ExcelColumn(title = "平均收益率", style={"title->background-color: #e0927f; border-bottom: 1px solid #d9d9d9; font-weight: bold; text-align: center;","odd->background-color: #f2f2f2; border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;", "even->border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;"})
    private BigDecimal avgIncreaseRate;
    /**
     * 平均浮动盈亏
     */
    @ExcelColumn(title = "平均浮动盈亏", style={"title->background-color: #e0927f; border-bottom: 1px solid #d9d9d9; font-weight: bold; text-align: center;","odd->background-color: #f2f2f2; border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;", "even->border-bottom: 1px solid #d9d9d9; display: table-row; vertical-align: inherit;border-color: inherit; text-align: center;"})
    private BigDecimal avgFloatingProfit;
    /**
     * 日期
     */
    private Date addTime;

}
